﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainManager.master" AutoEventWireup="true" CodeFile="PageCanBo.aspx.cs" Inherits="PageCanBo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="row-fluid">
                <div class="span12" id="divMsg" runat="server" visible="false">
                    <div class="alert" id="divAlert" runat="server"></div>
                </div>
            </div>
            <div class="row-fluid">
                
                <div class="span12">
                    <h3>Quản lý Cán bộ</h3>
                    <div class="well">

                        <a id="btnDeleteAll" runat="server" class="btn btn-danger multidelete" onserverclick="btnDeleteAll_ServerClick">Xóa dòng được chọn</a>
                        <a href="AddEditCanBo.aspx" role="button" class="btn btn-primary" >Thêm mới</a>
                        <a href="#" class="btn btn-warning" id="btnRefresh" runat="server" onserverclick="btnRefresh_ServerClick"><i class="icon-refresh"></i></a>
                        
                        &nbsp; Đơn vị <asp:DropDownList ID="ddlDonVi" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlDonVi_SelectedIndexChanged" AppendDataBoundItems="true">
                            <asp:ListItem Value="-1">... Chọn đơn vị ...</asp:ListItem>
                                      </asp:DropDownList>
                       <a href="PageTimCanBo.aspx">Tìm kiếm</a> | <a href="PageTrichLocThongTin.aspx">Trích lọc thông tin</a>
                    </div>
                    <asp:Repeater ID="rptData" runat="server">

                        <HeaderTemplate>
                            <table class="table table-bordered table-hover">
                                <thead>
                                    <tr>
                                        <th width="10"><input type="checkbox" id="check_all" /></th>
                                        <th width="50"></th>
                                        <th>Họ tên</th>
                                        <th width="50">G. tính</th>
                                        <th width="100">Ngày sinh</th>
                                        <th width="100">Số CMND</th>
                                        <th width="100">Số điện thoại</th>
                                        <th >Loại Cán bộ</th>
                                        <th>Đảng viên</th>
                                        <th >Đơn vị</th>
                                        <th width="50"></th>
                                    </tr>
                                </thead>
                                <tbody>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td>
                                      <input id="chkSelect" type="checkbox" name="cid" value="<%#Eval("ID") %>" />
                                </td>
                                <td>

                                    <img src="<%#Eval("HinhDaiDien") %>" width="48" alt=""/>

                                </td>
                                <td>
                                   <%#Eval("NgachCongChuc.TenNgach") %>: <a href="PageChiTietCanBo.aspx?ID=<%#Eval("ID") %>" title="Xem chi tiết"><%#Eval("HoTenCanBo") %></a>
                                    </td>
                                <td><%#Eval("GioiTinh") %></td>
                                <td><%#Eval("NgaySinh","{0:dd/MM/yyyy}") %></td>
                                <td><%#Eval("SoCMND") %></td>
                                <td><%#Eval("SoDienThoai") %></td>
                                <td><%#Eval("LoaiCanBo.TenLoaiCB") %></td>
                                <td><%#Eval("LaDangVien") %></td>
                                <td><%#Eval("DonVi.TenDonVi") %></td>
                                <td>
                                    <a href="PageChiTietCanBo.aspx?ID=<%#Eval("ID") %>" title="Xem chi tiết"><i class="icon-eye-open"></i></a>
                                
                                   <a  href="AddEditCanBo.aspx?ID=<%#Eval("ID") %>" title="Sửa"><i class="icon-edit"></i></a>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </tbody>
                        </table>
                        </FooterTemplate>
                    </asp:Repeater>
                     <asp:PagingControl ID="PagingControl1" runat="server" PageSize="20" FirstPageText="Trang đầu"
                        LastPageText="Trang sau" PreviousPageText="Trang trước" NextPageText="Trang tiếp" />
                </div>
            </div>

        </ContentTemplate>
        <Triggers>
        </Triggers>
    </asp:UpdatePanel>

</asp:Content>

